package com.bootdo.program.wallpaper.dao;

import com.bootdo.program.wallpaper.domain.BalanceRecordDO;
import com.bootdo.program.wallpaper.domain.SettlemendaysBillDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户每日结算账单
 * @author guoyunfei
 * @email 2549789059@qq.com
 * @date 2021-11-09 21:08:21
 */
@Mapper
public interface SettlemendaysBillDao {

	SettlemendaysBillDO get(Long id);
	
	List<SettlemendaysBillDO> list(Map<String,Object> map);


	List<SettlemendaysBillDO> selectBalanceRecord(@Param("sTime")String sTime,@Param("settlemantPlatform") Integer settlemantPlatform);

	int count(Map<String,Object> map);

	int countSett(@Param("sTime")String sTime,@Param("settlemantPlatform") Integer settlemantPlatform);

	int save(SettlemendaysBillDO settlemendaysBill);

	int batchInsert(List<SettlemendaysBillDO> list);

	int update(SettlemendaysBillDO settlemendaysBill);

	int updateBalance(BalanceRecordDO balanceRecordDO);

	int remove(Long id);
	
	int batchRemove(Long[] ids);

	List<SettlemendaysBillDO> selectSettlementDaysInfo(@Param("time")String time,@Param("settlemantPlatform") Integer settlemantPlatform);

	List<SettlemendaysBillDO> selectSettlementDaysInfoOri(@Param("time")String time,@Param("settlemantPlatform") Integer settlemantPlatform);

	int updateSettlementDaysInfo(@Param("time")String sTime,@Param("settlemantPlatform") Integer settlemantPlatform);

	int updateStatus(Map<String,Object> map);
}
